public class Main {

	public static void main(String[] args) {
		List test = new List();
		test.insert(new Node(new int[] {1, 3, 4}), 0); // first element
		test.print();
		test.insert(new Node(new int[] {2, 3, 7}), 1); // last element
		test.print();
		test.insert(new Node(new int[] {3, 9, 7}), 0);
		test.print();
		test.insert(new Node(new int[] {7, 8, 5}), 3); // middle
		test.print();
		test.insert(new Node(new int[] {4, 5, 9}), 0);
		test.print();
		test.insert(new Node(new int[] {5, 3, 1}), 0);
		test.print();
		test.insert(new Node(new int[] {4, 2, 1}), 4); // middle
		test.print();
		test.insert(new Node(new int[] {3, 2, 1}), 7); // end
		test.print();
		test.insert(new Node(new int[] {7, 5, 3}), 0);
		test.print();
		test.insert(new Node(new int[] {3, 4, 1}), 0);
		
		test.print();
		System.out.println("321 ist an der STelle: " + test.search(new Node(new int[] {3, 2, 1})));
		System.out.println("Removing last element:");
		test.remove(test.search(new Node(new int[] {3, 2, 1}))); // Removing end.
		test.print();
		
		System.out.println("Removing middle (3):");
		test.remove(3); // Removing middle.
		test.print();
		
		System.out.println("Removing first element:");
		test.remove(0);
		test.print();
		
		
		
		

	}

}
